updating oE intdiv
intdiv
include math.e namespace math public function intdiv(object a, object b)
returns an integral division of two objects.
Parameters:
- divided : any Euphoria object.
- divisor : any Euphoria object.
Returns:
An object, which will be a sequence if either dividend or divisor is a sequence.
Comments:
- This calculates how many non-empty sets when dividend is divided by divisor.
- The result's sign is the same as the dividend's sign.
Example 1:
object Tokens = 101 object MaxPerEnvelope = 5 integer Envelopes = intdiv( Tokens, MaxPerEnvelope) --> 21
Not Categorized, Please Help
|